import request from '@/api/request.js'

// 表格数据
export const getHomeStatic = () => {
  return request({
    url: 'static_maker/o_index',
    method: 'GET'
  })
}

// 栏目静态化
export const getColumnStatic = (params) => {
  return request({
    url: 'static_maker/o_channel',
    method: 'GET',
    params
  })
}
// 根据栏目id查询内容
export const getcontentList = (params) => {
  return request({
    url: 'static_maker/find_contentIds',
    method: 'GET',
    params
  })
}
// 内容静态化
export const getContentStatic = (params) => {
  console.log(params)
  return request({
    url: `static_maker/content_static?contentIds=${params.contentIds}`,
    method: 'POST'
  })
}
// 一键静态化
export const getAllStatic = () => {
  return request({
    url: 'static_maker/o_All',
    method: 'GET'
  })
}
